import {mockCommoditylist,mockCommoditydelete} from '@/api'
 
const state = {
  Commodity:{}
}
const actions = {
  async getCommodity({commit},{page,limit}){
    let result = await mockCommoditylist(page,limit)
    console.log('商品列表数据',result)
    commit('GETCOMMODITYLIST',result.data)
 }
}
const mutations = {
  GETCOMMODITYLIST(state,Commodity){
    state.Commodity = Commodity
  } 
} 


const getters = {
    
}
export default {
  state,
  actions,
  mutations,
  getters
}